package com.weiiew.backend.entity.config;

import com.weiiew.backend.entity.TerminationPolicy;
import com.weiiew.backend.executor.MouseClickExecutor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用于存储{@link MouseClickExecutor}的启动配置
 *
 * @author 魏锴
 * @since 2025/4/27
 */
@Data
@NoArgsConstructor
public class MouseClickConfig {
    private String clickButton;
    private String clickCount;
    private Position position;
    private Integer clickDuration;
    private Integer interval;
    private TerminationPolicy stop;
    private String channel; // 消息传递的通道名

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Position {
        private String type; // cursor/manual
        private Integer x;
        private Integer y;
    }
}
